package com.example.controller;

import com.example.feign.UserOrderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    public UserOrderFeign userOrderFeign;

    @GetMapping("/userDoOrder")
    public String userDOOrder(){
        System.out.println("用户a");
        String s = userOrderFeign.doOrder();
        return s;
    }
}
